package com.clusterswisdom.horn.api.tmall.client;

import com.clusterswisdom.horn.api.tmall.config.TmallApplication;
import com.taobao.api.ApiException;
import com.taobao.api.TaobaoRequest;
import com.taobao.api.TaobaoResponse;

public interface TmClient {
	
	public String initCode(String code);
	
	public TmallApplication getApplication();

	public <T extends TaobaoResponse> T execute(TaobaoRequest<T> request) throws ApiException ;
	
	public <T extends TaobaoResponse> T execute(TaobaoRequest<T> request, String session) throws ApiException ;
	
}
